package com.laijiale.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author laijiale
 * @date 2024年07月28日 11:57
 */
@Schema(description = "资产添加DTO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AssetsInsertDTO implements Serializable {
    @NotEmpty(message = "资产名称不能为空")
    @Schema(description = "资产名称")
    private String title;
    @Schema(description = "资产图片")
    private String picture;
    @Schema(description = "资产单价")
    @NotNull(message = "资产单价不能为空")
    private Double price;
    @Schema(description = "资产单价")
    @NotEmpty(message = "资产单价不能为空")
    private String priceUnit;
    @Schema(description = "剩余库存")
    @NotNull(message = "剩余库存不能为空")
    private Integer stock;

    @Schema(description = "总数量")
    @NotNull(message = "总数量不能为空")
    private Integer total;
    @Schema(description = "库存单位")
    @NotEmpty(message = "库存单位不能为空")
    private String stockUnit;
    @Schema(description = "资产信息")
    @NotEmpty(message = "资产信息不能为空")
    private String info;


}
